package com.yanqu.road.entity.zhaoshang;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.List;

/**
 * 项目公告
 */
public class ZsProjectNotice extends DataObject {

    private long projectId;        //项目id

    private int  noticeType;       //公告类型

    private int addTime;          //公告时间（秒）

    private List<ZsProjectNoticeParam> paramList = new ArrayList<>();    //参数

    public ZsProjectNotice(long projectId, int noticeType, int addTime) {
        this.projectId = projectId;
        this.noticeType = noticeType;
        this.addTime = addTime;
    }

    public ZsProjectNotice() {
    }

    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        if(this.projectId != projectId) {
            this.projectId = projectId;
            setUpdateOption();
        }
    }

    public int getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(int noticeType) {
        if(this.noticeType != noticeType) {
            this.noticeType = noticeType;
            setUpdateOption();
        }
    }

    public int getAddTime() {
        return addTime;
    }

    public void setAddTime(int addTime) {
        if(this.addTime != addTime) {
            this.addTime = addTime;
            setUpdateOption();
        }
    }

    public List<ZsProjectNoticeParam> getParamList() {
        return paramList;
    }

    public void setParamList(List<ZsProjectNoticeParam> paramList) {
        this.paramList = paramList;
        setUpdateOption();
    }

    public void addParamList(ZsProjectNoticeParam param){
        this.paramList.add(param);
        setUpdateOption();
    }

}
